// /**
//  * Copyright © 2013-2017 Magento, Inc. All rights reserved.
//  * See COPYING.txt for license details.
//  */

@import 'module/_collapsible_navigation.less';
@import "module/cart.less";
//
//  Theme variables
//  _____________________________________________

//  Messages
@message-global-note__color: @text__color;
@message-global-note__background: @color-yellow-light2;
@message-global-note-link__color: @link__color;
@message-global-note-link__color-hover: @link__hover__color;
@message-global-note-link__color-active: @link__active__color;
@message-global-note__border-color: @color-yellow-light3;

@message-global-caution__color: @color-white;
@message-global-caution__background: @color-red9;
@message-global-caution-link__color: @link__color;
@message-global-caution-link__color-hover: @link__hover__color;
@message-global-caution-link__color-active: @link__active__color;
@message-global-caution__border-color: none;

@header__background-color: false;
@header-panel__background-color: @color-gray-middle3;
@header-panel__text-color: @color-white;
@header-icons-color: @color-gray56;
@header-icons-color-hover: @color-gray20;
@customer-welcome__z-index: @dropdown-list__z-index + 1;

@addto-color: @color-gray60;
@addto-hover-color: @primary__color;
@minicart-icons-color: @header-icons-color;
@minicart-icons-color-hover: @header-icons-color-hover;

@price-color: @color-gray34;
@price-size: 22px;
@price-size-desktop: 36px;

@button__shadow: inset 0 1px 0 0 rgba(255, 255, 255, 1), inset 0 -1px 0 0 fade(@border-color__base, 30); // Used for secondary button and catalog toolbar controls
@button__shadow-active: inset 0 1px 0 0 fade(@border-color__base, 80), inset 0 -1px 0 0 fade(@border-color__base, 30); // Used for secondary button and catalog toolbar controls

@h1__margin-bottom__desktop: @indent__xl;

//  Footer
@footer__background-color: @color-gray-light01;
@footer-links-separator-border-color: @color-gray-light4;
@footer-links-color: @color-gray34;
@footer-links-color-hover: @color-gray20;
@footer-links-color-current: @primary__color__light;

//  Layered navigation
@filter-title-background-color: @color-gray94;
@filter-link: @color-gray-darken4;
@filter-link-hover: darken(@filter-link, 30%);
@filter-quantity: @color-gray52;


//
//  Common
//  _____________________________________________
.option_optionStock {
    background: linear-gradient(14deg, transparent 48.5%, rgb(51, 51, 51) 51.5%, rgb(51, 51, 51) 36.5%, transparent 53.5%) !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}
& when (@media-common = true) {
    .page-backgroud{
        background:#fdd5d9;
    }
    //
    .max-main{
        max-width: none !important;

    }
    .videoAward-wrapper_column-tit img {
        width: 90%;

    }
    .videoAward-wrapper_column {
        padding-top: .8em;
    }
    .videoAward-wrapper_column p {
        font-size: 14px;
        text-indent: 2em;
        margin: 15px 0;
        text-align: center;
        padding: 0 15px;
        color: #666;
    }
    .videoAward-wrapper_column-tit {
        margin-bottom: 0!important;
        text-align: center;

    }

    .videoAward-wrapper_column-item {
        width: 90%;
        margin: 0 auto 1.6em;
        background: #fff;
        box-shadow: 1px 2px 6px 0 rgba(10,10,10,.3);
        border-radius: 5px;
        line-height: 2;
        color: #000;
        font-size: 1em;
    }

    .flex-row {
        -webkit-box-orient: horizontal;
        -ms-flex-direction: row;
        -webkit-flex-direction: row;
        flex-direction: row;
        flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        display: flex;
    }
    .videoAward-wrapper_column-item--left {
        width: 25%;
        text-align: right;
        padding-right: 1%;
        box-sizing: border-box;
        position: relative;
    }
    .videoAward-wrapper_column-layout {
        display: flex;
        justify-content: center;

        margin: 0 auto;
    }
    .videoAward-wrapper_column-layout--item {
        width: 100%;
    }
    .videoAward-wrapper_column-tit2 {
        color: #ff6799;
        margin: -.2em 0 .6em;
        font-weight: 700;
        text-align: center;
        font-size: 2.2em;
        font-style: italic;
        line-height: 1;
    }
    .videoAward-wrapper_column-item--left .awardPrice {
        font-size: 1.5em;
        color: #fff;
        font-weight: 700;
        background: #ff6799;
        border-radius: 0 0 5px 5px;
        line-height: 1;
        position: absolute;
        top: -.25em;
        right: 5%;
        padding: .4em .2em;
        letter-spacing: 1px;
        display: inline-block;
    }
    .videoAward-wrapper_column-item--left .awardPrice:after {
        content: "";
        width: 0;
        height: 0;
        border-color: transparent transparent transparent #c4265a;
        border-style: solid;
        border-width: .25em 0 0 .25em;
        position: absolute;
        top: 0;
        right: -.25em;
    }
    .videoAward-wrapper_column-item--right {
        width: 75%;
    }
    .videoAward-wrapper_column-item--right i {
        color: #ff6799;
        font-style: normal;
    }

    .videoAward-wrapper_column-tit2 {
        color: #ff6799;
        margin: -.2em 0 .6em;
        font-weight: 700;
        text-align: center;
        font-size: 2.2em;
        font-style: italic;
        line-height: 1;
    }
 /*   .videoAward-wrapper_column-layout--item .videoAward-wrapper_column-item {
        width: 566px;
        height: 37px;
        line-height: 37px;
        margin: 0 auto 36px;
    }
    .videoAward-wrapper_column-layout--item .videoAward-wrapper_column-item--left .awardPrice {
        font-size: 42px;
        padding: 6px;
        top: -8px;
    }
    .videoAward-wrapper_column-layout--item .videoAward-wrapper_column-item--right {
        font-size: 21px;
    }*/
    .videoAward-wrapper_column-tit3 {
        width: 86%;
        background: #ff6799;
        text-align: center;
        border-radius: 5px;
        margin: .7em auto 1em;
        font-size: 1.5em;
        line-height: 1.5;
        color: #fff;
        font-weight: 400;
        font-family: Bebas Neue;
        letter-spacing: 2px;
    }
    .videoAward-wrapper_column-item2 {
        width: 90%;
        margin: .5em auto;
    }
    .videoAward-wrapper_column-item2--left {
        border-radius: 50%;
        background: #ff6799;
        width: 1.5em;
        height: 1.5em;
        font-size: 1em;
        text-align: center;
        color: #fff;
        line-height: 1.5;
        margin-right: 2%;
    }
    .videoAward-wrapper_column-item2--right {
        width: 90%;
        color: #000;
        font-size: 1em;
        line-height: 1.5;
    }
    .videoAward-wrapper_column-excellentImg {
        margin: 0 auto;
        display: block!important;
    }
    .videoAward-wrapper_column-item2--left2 {
        width: 1.5em;
        height: 1.5em;
        background: url("../images/xin.png") no-repeat;
        background-size: contain;
        margin-right: 3%;
        margin-top: 3px;
    }
    .videoAward-wrapper_column-item3 {
        width: 90%;
        margin: 0 auto;
        padding: .5em 0;
        position: relative;
    }
    .videoAward-wrapper_column-item3--video {
        width: 100%;
        position: relative;
        margin: 0 auto;
        padding: .5em 0;
        position: relative;
    }
    .videoAward-wrapper_column-item3--video h2 {
        font-size: 1.5em;
        line-height: 1.5;
        display: block;
        text-align: center;
        color: #fff;
        margin-top: 0px;

        margin-bottom: 0px;
        background: #f51995;
        font-weight: 400;
    }
    .videoAward-wrapper_column-item3--video img.video_play {
        width: 100%;
        border: 1px solid #f51995;
        box-sizing: border-box;
    }
    .videoAward-wrapper_column-item3 .video_play {
        cursor: pointer;
    }
    .videoAward-wrapper_column-item3--video .video_btn {
        cursor: pointer;
        width: 120px;
        height: 120px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
    }
    .videoAward-wrapper_column-tit4 {
        width: 70%;
        margin: 1em auto;
        color: #fff;
        font-size: 1.5em;
        line-height: 1.5;
        text-align: center;
        background: #f51995;
    }
    .videoAward-wrapper_column-item2--right a {
        color: #f51995;
    }

    .video_alert_mask {
        position: fixed;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,.6);
        top: 0;
        left: 0;
        z-index: 999999;
        display: none;
    }
    .video_alert_mask .video_alert_wrap {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 96%;
        margin: auto;
        height: 240px;
        padding: 10px 0;
        box-sizing: border-box;
        z-index: 1000000;
    }
    .video_alert_mask .video_alert_wrap .close {
        position: absolute;
        top: 3px;
        right: 3px;
        color: #fff;
        font-size: 20px;
        font-weight: 400;
    }

    .video_alert_mask .video_alert_wrap .video_alert_con {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0 auto;
        width: 100%;
        height: 100%;
    }
    body {
        .lib-css(background-color, @page__background-color);
    }

    //  ToDo UI: move it directly to .page-wrapper (now it doesn't appear in mediaquery cuz of size of css)
    .page-wrapper {
        .ie9 & {
            .lib-css(background-color, @page__background-color);
            min-height: 0;
        }
    }

    //
    //  Header
    //  ---------------------------------------------

    .page-header {
        .lib-css(background-color, @header__background-color);
        margin-bottom:0px;
        position:relative;
    }

    .header.panel {
        > .header.links {
            .lib-list-inline();
            float: right;
            font-size: 0;
            margin-left: auto;
            margin-right: @indent__base;

            > li {
                font-size: 12px;
                margin: 0 0 0 10px;
                text-transform: uppercase;
                > a {
                    .lib-link(
                    @_link-color: @header-panel__text-color,
                        @_link-text-decoration: none,
                        @_link-color-visited: @header-panel__text-color,
                        @_link-text-decoration-visited: none,
                        @_link-color-hover: @header-panel__text-hover-color,
                        @_link-text-decoration-hover: none,
                        @_link-color-active: @header-panel__text-active-color,
                        @_link-text-decoration-active: none
                        );
                }
            }
        }
    }

    .header {
        &.content:extend(.abs-add-clearfix all) {
            padding-top: @indent__s;
            position: relative;
        }
    }

    .logo {
        float: left;
        margin: 3px 0 @indent__s 35px;
        max-width: 50%;
        position: relative;
        z-index: 5;

        img {
            display: block;
            max-height: 50px;
            max-width: 100%;
        }

        .page-print & {
            display: inline-block;
            float: none;
        }
    }

    .page-main {
        > .page-title-wrapper {
            .page-title + .action {
                margin-top: @indent__l;
            }
        }
    }

    .action.skip {
        &:not(:focus) {
            &:extend(.abs-visually-hidden all);
        }
        &:focus {
            .lib-css(background, @color-gray94);
            .lib-css(padding, @indent__s);
            box-sizing: border-box;
            left: 0;
            position: absolute;
            text-align: center;
            top: 0;
            width: 100%;
            z-index: 15;
        }
    }

    //
    //  Global notice
    //  ---------------------------------------------

    .message.global {
        p {
            margin: 0;
        }

        &.noscript,
        &.cookie {
            .lib-message(@_message-type: global-note);
            margin: 0;
        }

        &.cookie {
            bottom: 0;
            left: 0;
            position: fixed;
            right: 0;
            z-index: 3;

            .actions {
                margin-top: @indent__s;
            }
        }

        &.demo {
            .lib-message(@_message-type: global-caution);
            margin-bottom: 0;
            text-align: center;
        }
    }

    //
    //  Footer
    //  ---------------------------------------------

    .page-footer {
        margin-top: 0;
      //  .lib-css(background, #111111);
        float:left;
        width:100%;
    }

    .footer {
        &.content {
            border-top: 1px solid @footer-links-separator-border-color;
            padding-top: @indent__base;

            ul:extend(.abs-reset-list all) {
            }

            .links {
                > li {
                    .lib-css(background, @footer__background-color);
                    .lib-font-size(16);
                    border-top: 1px solid @footer-links-separator-border-color;
                    margin: 0 -@layout__width-xs-indent;
                    padding: 0 @layout__width-xs-indent;
                }

                a,
                strong {
                    display: block;
                    padding: @indent__s 0;
                }

                strong {
                    .lib-css(color, @footer-links-color-current);
                    font-weight: normal;
                }

                a {
                    .lib-link(
                    @_link-color: @footer-links-color,
                    @_link-text-decoration: none,
                    @_link-color-visited: @footer-links-color,
                    @_link-text-decoration-visited: none,
                    @_link-color-hover: @footer-links-color-hover,
                    @_link-text-decoration-hover: underline,
                    @_link-color-active: @footer-links-color-hover,
                    @_link-text-decoration-active: underline
                    );
                }
            }
        }
    }

    .copyright {
        .lib-css(color, @color-white);
        display: block;
        padding: 30px 0;
        text-align: center;
        float:left;
        /*width:100%;*/
        box-sizing:border-box;
    }
    .footer-top{
        /*padding: 0 30px;*/
        min-height: 100%;
        /*background: #171719;*/ 
    }
    .footer-top .footer-payment-logo{
        float: right;
        padding-top: 20px;
    }
    .page-header,
    .page-footer {
        .switcher {
            .options {
                .lib-dropdown(
                @_dropdown-actions-padding: 0,
                @_dropdown-list-item-padding: 0,
                @_dropdown-toggle-icon-content: @icon-down,
                @_dropdown-toggle-active-icon-content: @icon-up,
                @_icon-font-text-hide: true,
                @_icon-font-size: 10px,
                @_icon-font-line-height: 22px,
                @_dropdown-list-min-width: 160px
                );

                ul.dropdown {
                    a {
                        .lib-link(
                        @_link-color: @color-gray20,
                        @_link-text-decoration: none,
                        @_link-color-visited: @color-gray20,
                        @_link-text-decoration-visited: none,
                        @_link-color-hover: @color-gray20,
                        @_link-text-decoration-hover: none,
                        @_link-color-active: @color-gray20,
                        @_link-text-decoration-active: none
                        );
                        display: block;
                        padding: 8px;
                    }
                }
            }
            strong {
                font-weight: @font-weight__regular;
                text-transform: uppercase;
                font-size: 12px;
            }
            .label:extend(.abs-visually-hidden all) {
                display: none;
            }
        }
    }
}
@media only screen and (max-width: @width-767) {
    .footer-top{
        .copyright{
            padding: 20px 10px;           
        }
        .footer-payment-logo{
            clear: both;
            float: none;
            margin: 10px;
            padding-top: 0px;
        }
    }  
    .footer-main .page-main .links{
        width: 50%;
        padding: 0 20px;
        /*min-height: 240px;*/
    }
    .cms-index-index {
        .page-main{
            padding:0 0px;      
        }
        .ad-home-top,.ad-home-middle{
            padding:0px 20px;      
        }
    }
}
@media only screen and (max-width: 640px) {
    .footer-main .page-main .links{
        min-height: 0px;
        width:100%;
        margin-right: 3.125%;
        margin-bottom: 0px;
        .title strong{
            font-weight: 600;
        }
        ul{
            display: none;
        }
        .title:after{
            color: #000;
            display: inline-block;
            font-family: FontAwesome;
            font-style: normal;
            font-weight: normal;
            line-height: 1;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            content: '\f105';
            font-size: 24px;
            float: right;
            margin-top: 10px; 
            -moz-transition: all 500ms ease;
            -webkit-transition: all 500ms ease;
            -o-transition: all 500ms ease;
            transition: all 500ms ease;
            -moz-backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
        }
        .title.active:after {
            -moz-transform: rotate(90deg);
            -webkit-transform: rotate(90deg);
            -o-transform: rotate(90deg);
            transform: rotate(90deg);
        }
    }
}
@media only screen and (max-width: 399px) {
    .footer-main .page-main .links ul.active{
        margin-bottom: 0px;
    }    
}
@media only screen and (max-width: 300px) {
    .footer-main .page-main .sc_columns .sc_columns_item p{
        display:none;
    }
}
//
//  Navigation
//  ---------------------------------------------

.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
    .customer-name,
    .customer-welcome + .authorization-link {
        display: none;
    }
    .nav-sections .switcher-trigger strong:after {
        .lib-font-size(16);
        right: -25px;
        top: 2px;
    }
    .navigation .parent .level-top:after {
        .lib-font-size(16);
        right: 10px;
        top: 7px;
    }
    .page-footer .footer.content {
        .switcher-store {
            .lib-css(background, @footer__background-color);
            .lib-font-size(16);
            margin: 0 -@layout__width-xs-indent;
            .switcher-options {
                display: block;
                ul.dropdown {
                    background: none;
                    border: 0;
                    box-shadow: none;
                    margin: 0;
                    position: relative;
                    &:before,
                        &:after {
                        display: none;
                    }
                }
                .switcher-trigger,
                .switcher-option {
                    border-top: 1px solid @footer-links-separator-border-color;
                    display: block;
                    padding: @indent__s @layout-indent__width;
                }
                .switcher-trigger strong {
                    padding: @indent__s 0;
                }
                .switcher-option a {
                    padding: 0;
                }
            }
        }
    }

    //
    //  Widgets
    //  ---------------------------------------------

    .sidebar {
        .widget.block:not(:last-child),
        .widget:not(:last-child) {
            margin-bottom: @indent__xl;
        }
    }

    .widget {
        clear: both;

        .block-title:extend(.abs-block-widget-title all) {
        }
    }
}

//
//  Desktop
//  _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
    html,
    body {
        height: 100%; // Stretch screen area for sticky footer
    }

    body {
        .ie9 & {
            .lib-css(background-color, @copyright__background-color);
        }
    }

    .navigation ul {
        padding: 0 8px;
    }

    .page-header {
        /*border: 0;*/
        margin-bottom: 0;
        background: @cpanel-background-color-black;
        .header.panel:extend(.abs-add-clearfix-desktop all) {
            padding-bottom: 10px;
            padding-top: 10px;
            /*overflow: hidden;*/
            position:relative;
        }

        .switcher {
            float: left;
            margin: @cpanel-header-links-margin;
            padding: @cpanel-header-links-padding;
            /*border-left: @cpanel-header-links-border-left;*/
            .lib-vendor-prefix-order(1);
        }
    }

    .page-main {
        > .page-title-wrapper {
            .page-title {
                display: inline-block;
                color: #333333;
                font-weight: 400;
                font-size: 30px;
            }

            .page-title + .action {
                float: right;
                margin-top: @indent__base;
            }
        }
    }

    .customer-welcome {
        .lib-dropdown(
        @_toggle-selector: ~'.action.switch',
        @_options-selector: ~'ul',
        @_dropdown-actions-padding: 0,
        @_dropdown-list-item-padding: 0,
        @_dropdown-toggle-icon-content: @icon-down,
        @_dropdown-toggle-active-icon-content: @icon-up,
        @_icon-font-text-hide: true,
        @_icon-font-size: 10px,
        @_icon-font-line-height: 22px,
        @_dropdown-list-pointer-position: right,
        @_dropdown-list-position-right: 0,
        @_dropdown-list-z-index: @customer-welcome__z-index
        );

        li:extend(.switcher li all) {
            a {
                .lib-link(
                @_link-color: @color-gray20,
                @_link-text-decoration: none,
                @_link-color-visited: @color-gray20,
                @_link-text-decoration-visited: none,
                @_link-color-hover: @color-gray20,
                @_link-text-decoration-hover: none,
                @_link-color-active: @color-gray20,
                @_link-text-decoration-active: none
                );
                display: block;
                line-height: 1.4;
                padding: 8px;
            }
        }

        .customer-name {
            cursor: pointer;
        }

        .customer-menu {
            display: none;
        }

        .action.switch {
            .lib-button-reset();
            .lib-css(color, @color-gray20);
        }

        .header.links {
            min-width: 175px;
        }

        &.active {
            .action.switch {
                .lib-icon-font-symbol(
                @_icon-font-content: @icon-up,
                @_icon-font-position: after
                );
            }

            .customer-menu {
                display: block;
            }
        }

        .greet {
            display: none;
        }
    }

    .header {
        &.panel {
            > .header.links {
                .lib-list-inline();
                float: right;
                margin-left: auto;

                > li {
                    /*border-left: 1px solid #ccc;*/
                    margin: 0 0 0 8px;
                    padding: 0 0 0 8px;
                    line-height: 18px;
                    &:first-child {
                        border: none;
                    }
                    &.welcome,
                    > a {
                        display: inline-block;
                        line-height: 18px;
                    }

                    &.welcome {
                        a {
                            .lib-css(color, @color-white);
                            .lib-css(padding-left, @indent__xs);
                        }
                    }
                }

                > .authorization-link {
                    &:after {
                        content: attr(data-label);
                        display: inline-block;
                        margin: 0 -@indent__xs 0 @indent__xs;
                    }
                }

                > .customer-welcome + .authorization-link {
                    display: none;
                }
            }
        }

        &.content:extend(.abs-add-clearfix-desktop all) {
/*            clear:both;
            padding: 20px @indent__base;
            overflow: hidden; */
        }
    }

    .logo {
        margin: -8px auto @indent__m 0;

        img {
            max-height: inherit;
        }
    }

    .page-wrapper {
        .lib-vendor-prefix-display(flex);
        .lib-vendor-prefix-flex-direction(column);
        margin: 0;
        min-height: 100%; // Stretch content area for sticky footer
        position: relative;
        transition: margin .3s ease-out 0s;

        > .breadcrumbs,
        > .top-container,
        > .widget {
            box-sizing: border-box;
            width: 100%;
        }

        .ie10 &,
        .ie11 & {
            height: 100%;
        }
    }

    .page-footer {
        .lib-css(background, #111111);
        margin-top: auto;
    }

    .footer {
        &.content {
            border-top: none;

            .block {
                float: right;
            }

            ul {
                padding-right: 50px;
            }

            .switcher.store {
                display: block;
                margin: 0;
            }

            .links {
                display: inline-block;
                padding-right: 50px;
                vertical-align: top;

                li {
                    background: transparent;
                    border: none;
                    font-size: 14px;
                    margin: 0 0 8px;
                    padding: 0;
                }

                a,
                strong {
                    display: inline;
                }
            }
        }
    }
}

//
//  Common
//  _____________________________________________

& when (@media-common = true) {
    .no-display:extend(.abs-no-display all) {
    }

    //
    //  Calendar
    //  ---------------------------------------------

    .ui-datepicker td {
        padding: 0;
    }

    .ui-tooltip {
        border: @tooltip__border-width solid @tooltip__border-color;
        .lib-css(background, @tooltip__background);
        padding: 10px;
    }
    .page-wrapper{
        margin-top:90px ;
        .breadcrumbs{
            margin:10px 0;
            .items{
                color:#222222;
            }
        } 
    }
}
@media(max-width: 767px){
     .nav-toggle{
        &:before{
            content:'' !important;
            width:42px;
            height: 37px;
            background: url('../images/menu.png') no-repeat;

        }

    }
    .nav-sections .header.links{
        .header.links{
            li.authorization-link,li.online-help{
                display:none;
            }
        }
    }
}
.cart-summary .paypal{
    display:inline-block;
}
@media screen and (max-width: 499px){
    .nav-toggle:before {
        background-size: 70%;        
    }
}